from rest_framework import serializers
from .models import User, AuthUser


class UserModelSerializer(serializers.ModelSerializer):
    """
    用户表的序列化
    """

    class Meta:
        model = User
        fields = '__all__'


class AuthUserModelSerializer(serializers.ModelSerializer):
    """
    三方登录用户关联表序列化
    """

    class Meta:
        model = AuthUser
        fields = '__all__'


